<html>
<head><meta charset="utf-8"><title>Generating compiler docs · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html">Generating compiler docs</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="221079335"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221079335" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221079335">(Dec 28 2020 at 18:08)</a>:</h4>
<p>How do I generate the compiler documentation using <code>x.py</code> ?</p>



<a name="221079389"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221079389" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221079389">(Dec 28 2020 at 18:09)</a>:</h4>
<p>I'm constantly missing errors in <a href="https://github.com/rust-lang/rust/issues/79816">#79816</a> (e.g: <a href="https://github.com/rust-lang/rust/pull/80350#issuecomment-750907831">https://github.com/rust-lang/rust/pull/80350#issuecomment-750907831</a>) and CI doesn't test this before merging</p>



<a name="221079439"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221079439" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221079439">(Dec 28 2020 at 18:09)</a>:</h4>
<p>So I'm making everyone lose time <span aria-label="frown" class="emoji emoji-1f641" role="img" title="frown">:frown:</span></p>



<a name="221080334"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080334" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080334">(Dec 28 2020 at 18:20)</a>:</h4>
<p><span class="user-mention" data-user-id="307289">@Poliorcetics</span> set <code>compiler-docs = true</code> in config.toml</p>



<a name="221080363"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080363" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080363">(Dec 28 2020 at 18:20)</a>:</h4>
<p>thanks <span aria-label="grinning" class="emoji emoji-1f600" role="img" title="grinning">:grinning:</span></p>



<a name="221080367"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080367" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080367">(Dec 28 2020 at 18:20)</a>:</h4>
<p>and then <code>x.py doc --stage 1 compiler/rustc</code></p>



<a name="221080382"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080382" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080382">(Dec 28 2020 at 18:20)</a>:</h4>
<p>--stage 0 should work but is broken for the forseeable future <a href="https://github.com/rust-lang/rust/issues/79980">https://github.com/rust-lang/rust/issues/79980</a></p>



<a name="221080426"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080426" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080426">(Dec 28 2020 at 18:21)</a>:</h4>
<p>I wonder if <a href="https://github.com/rust-lang/rust/pull/79540">https://github.com/rust-lang/rust/pull/79540</a> would help with that</p>



<a name="221080683"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080683" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080683">(Dec 28 2020 at 18:25)</a>:</h4>
<p>Urgh I built LLVM earlier and it's rebuilding it now</p>



<a name="221080736"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080736" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080736">(Dec 28 2020 at 18:26)</a>:</h4>
<p>Ah no, only a very small part, nvm</p>



<a name="221080775"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080775" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080775">(Dec 28 2020 at 18:27)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/122651-general/topic/Generating.20compiler.20docs/near/221080426">said</a>:</p>
<blockquote>
<p>I wonder if <a href="https://github.com/rust-lang/rust/pull/79540">https://github.com/rust-lang/rust/pull/79540</a> would help with that</p>
</blockquote>
<p>OMG it did</p>



<a name="221080784"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080784" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080784">(Dec 28 2020 at 18:27)</a>:</h4>
<p>you're a wizard, that's magic</p>



<a name="221080792"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080792" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080792">(Dec 28 2020 at 18:27)</a>:</h4>
<p>wow that is just such a difference</p>
<div class="codehilite"><pre><span></span><code> Documenting rustc_driver v0.0.0 (/home/joshua/rustc/compiler/rustc_driver)
    Finished release [optimized + debuginfo] target(s) in 1m 13s
Build completed successfully in 0:01:13
</code></pre></div>



<a name="221080798"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080798" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080798">(Dec 28 2020 at 18:27)</a>:</h4>
<p>it was like 10 minutes before lol</p>



<a name="221080839"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080839" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080839">(Dec 28 2020 at 18:28)</a>:</h4>
<p><span aria-label="tada" class="emoji emoji-1f389" role="img" title="tada">:tada:</span></p>



<a name="221080847"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221080847" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221080847">(Dec 28 2020 at 18:28)</a>:</h4>
<p><span class="user-mention silent" data-user-id="307289">Poliorcetics</span> <a href="#narrow/stream/122651-general/topic/Generating.20compiler.20docs/near/221080784">said</a>:</p>
<blockquote>
<p>you're a wizard, that's magic</p>
</blockquote>
<p><em>sysroot</em> <span aria-label="skull" class="emoji emoji-1f480" role="img" title="skull">:skull:</span></p>



<a name="221081070"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221081070" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221081070">(Dec 28 2020 at 18:31)</a>:</h4>
<p>cc <span class="user-mention" data-user-id="245339">@Nadrieril</span> :)</p>



<a name="221081680"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221081680" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nadrieril <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221081680">(Dec 28 2020 at 18:39)</a>:</h4>
<p>OMG!!</p>



<a name="221081763"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221081763" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221081763">(Dec 28 2020 at 18:40)</a>:</h4>
<p>note this hasn't been merged to master yet</p>



<a name="221081777"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221081777" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221081777">(Dec 28 2020 at 18:41)</a>:</h4>
<p>but I think it will make it in the next couple weeks :)</p>



<a name="221081906"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221081906" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221081906">(Dec 28 2020 at 18:42)</a>:</h4>
<p>good thing I've been on break lol, I would never have gotten this much work done during the school year</p>



<a name="221081984"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221081984" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221081984">(Dec 28 2020 at 18:43)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/122651-general/topic/Generating.20compiler.20docs/near/221081906">said</a>:</p>
<blockquote>
<p>good thing I've been on break lol, I would never have gotten this much work done during the school year</p>
</blockquote>
<p>I am the exact inverse</p>



<a name="221082036"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221082036" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nadrieril <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221082036">(Dec 28 2020 at 18:44)</a>:</h4>
<p>you are a wizard, I thought we had concluded it was unsolvable without changing a lot of things and making the cargo folks angry</p>



<a name="221082055"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221082055" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221082055">(Dec 28 2020 at 18:44)</a>:</h4>
<p><span class="user-mention silent" data-user-id="245339">Nadrieril</span> <a href="#narrow/stream/122651-general/topic/Generating.20compiler.20docs/near/221082036">said</a>:</p>
<blockquote>
<p>you are a wizard, I thought we had concluded it was unsolvable without changing a lot of things and making the cargo folks angry</p>
</blockquote>
<p>well I did the 'changing a lot of things' part <span aria-label="laughing" class="emoji emoji-1f606" role="img" title="laughing">:laughing:</span></p>



<a name="221082059"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221082059" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221082059">(Dec 28 2020 at 18:44)</a>:</h4>
<p>this is using an entirely different compiler than before</p>



<a name="221082098"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221082098" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nadrieril <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221082098">(Dec 28 2020 at 18:45)</a>:</h4>
<p>ok wow</p>



<a name="221082283"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221082283" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221082283">(Dec 28 2020 at 18:47)</a>:</h4>
<p>The funny thing is I fixed it completely by accident lol</p>



<a name="221082300"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221082300" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221082300">(Dec 28 2020 at 18:47)</a>:</h4>
<p>I just wanted shorter compile times for rustdoc <span aria-label="laughing" class="emoji emoji-1f606" role="img" title="laughing">:laughing:</span></p>



<a name="221082379"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221082379" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nadrieril <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221082379">(Dec 28 2020 at 18:48)</a>:</h4>
<p>x) magic <span aria-label="sparkles" class="emoji emoji-2728" role="img" title="sparkles">:sparkles:</span></p>



<a name="221082441"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221082441" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221082441">(Dec 28 2020 at 18:49)</a>:</h4>
<p>I wonder if this also fixes <code>x.py test --stage 0 src/tools/clippy</code>...</p>



<a name="221082675"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/221082675" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#221082675">(Dec 28 2020 at 18:52)</a>:</h4>
<p>ok unfortunately no, my potions are too strong for you traveller</p>



<a name="228707055"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/228707055" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#228707055">(Mar 04 2021 at 02:45)</a>:</h4>
<p>ok <a href="https://github.com/rust-lang/rust/pull/82739">https://github.com/rust-lang/rust/pull/82739</a> now fixes <code>x.py doc compiler/rustc</code> for real :)</p>



<a name="228707120"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Generating%20compiler%20docs/near/228707120" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Generating.20compiler.20docs.html#228707120">(Mar 04 2021 at 02:46)</a>:</h4>
<p>takes me 1 minute 10 seconds locally, for comparison a stage 1 build takes me 15 minutes</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>